package com.pdh.bean;

import java.sql.Timestamp;

/**
 * @Author: 彭德华
 * @Date 2021-08-29 22:19
 */
public class Courier {
    private int id;
    private String courierName;
    private String courierPhone;
    private String password;
    private String courierIdCardNo;
    private int status;
    private int deliveryCount;
    private Timestamp loginTime;
    //数据库存储ip采用varbinary(16),我们读取的时候采用INET6_NTOA(LOGIN_IP)
    private String loginIp;
    private Timestamp createTime;
    private Timestamp updateTime;

    public Courier() {
    }

    public Courier(String courierName, String courierPhone, String password, String courierIdCardNo, int status) {
        this.courierName = courierName;
        this.courierPhone = courierPhone;
        this.password = password;
        this.courierIdCardNo = courierIdCardNo;
        this.status = status;
    }

    public Courier(String courierName, String courierPhone, String password, String courierIdCardNo) {
        this.courierName = courierName;
        this.courierPhone = courierPhone;
        this.password = password;
        this.courierIdCardNo = courierIdCardNo;
    }

    public Courier(int id, String courierName, String courierPhone, String password, String courierIdCardNo, int status, int deliveryCount, Timestamp loginTime, String loginIp, Timestamp createTime, Timestamp updateTime) {
        this.id = id;
        this.courierName = courierName;
        this.courierPhone = courierPhone;
        this.password = password;
        this.courierIdCardNo = courierIdCardNo;
        this.status = status;
        this.deliveryCount = deliveryCount;
        this.loginTime = loginTime;
        this.loginIp = loginIp;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCourierName() {
        return courierName;
    }

    public void setCourierName(String courierName) {
        this.courierName = courierName;
    }

    public String getCourierPhone() {
        return courierPhone;
    }

    public void setCourierPhone(String courierPhone) {
        this.courierPhone = courierPhone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCourierIdCardNo() {
        return courierIdCardNo;
    }

    public void setCourierIdCardNo(String courierIdCardNo) {
        this.courierIdCardNo = courierIdCardNo;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getDeliveryCount() {
        return deliveryCount;
    }

    public void setDeliveryCount(int deliveryCount) {
        this.deliveryCount = deliveryCount;
    }

    public Timestamp getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Timestamp loginTime) {
        this.loginTime = loginTime;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }
}
